package com.xhwl.logistics.service.cent;

import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.query.cent.security.GroupPointPageQuery;
import com.xhwl.common.vo.cent.security.GroupPointVO;
import feign.RequestLine;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;


/**
 * 复用智慧安防的定位管理
 */
//@FeignClient(name = "cent-security",url = "")
public interface IPointFegin {

    /**
     * 新增分组
     * @param groupPointVO
     * @param industryId
     * @return
     */
    @RequestLine(value = "POST /point/add-point-group")
    ResultJson addGroupPoint(@RequestBody GroupPointVO groupPointVO,
                             @RequestHeader("industryId") Short industryId);


    /**
     * 分组分页查询
     * @param groupPointPageQuery
     * @param industryId
     * @return
     */
    @RequestLine(value = "POST /point/get-pointgroup-page")
    ResultJson getGroupPointPage(@RequestBody GroupPointPageQuery groupPointPageQuery,
                                 @RequestHeader("industryId") Short industryId);


    /**
     * 查询分组详情
     * @param groupPointId
     * @param industryId
     * @return
     */
    @RequestLine(value = "POST /point/get-pointgroup")
    ResultJson getGroupPoint(@RequestBody Integer groupPointId,
                             @RequestHeader("industryId") Short industryId);


    /**
     * 删除分组
     * @param groupPointId
     * @param industryId
     * @return
     */
    @RequestLine(value = "POST /point/delete-point-group")
    ResultJson deleteGroupPoint(@RequestBody Integer groupPointId,
                                @RequestHeader("industryId") Short industryId);
}
